package com.hdy.javachatroomdemo.Model;

import lombok.Data;

import java.util.Date;

@Data
public class Message {
    private int messageId;
    private int fromId;
//    private String file;
    private String content;
    private String type = "message"; // 默认消息类型，file表示文件消息
    private Date postTime;
    private int sessionId;
}
